package com.ws.lv.service;

import com.ws.lv.bean.Acl_user;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface Acl_userService {
    int insertAcl_user (Acl_user acl_user);

    Acl_user selectAcl_userByUsername(String username);

    List<Acl_user> selectAcl_users(@Param("username") String username, @Param("is_deleted") Integer is_deleted, @Param("sid") Integer sid);

    int softUpdateAcl_user(int user_id);

    Acl_user selectAcl_userById(int user_id);

    int updateAcl_user(Acl_user acl_user);

    int deleteAcl_users(ArrayList<Integer> user_ids);

    int updateAcl_userPassword(@Param("user_id") int user_id,@Param("newPassword") String newPassword);

    int insertAcl_user_role(@Param("user_id") int user_id,@Param("role_id") int role_id);

    int deleteAcl_user_role(int user_id);

    List<Acl_user> selectAcl_usersBySupplierId(int supplierId);
}
